package ru.nsu.fit.ws.server_info;

import javax.jws.HandlerChain;
import javax.jws.WebService;
import java.util.Date;

/**
 * @author Timur Zolotuhin (tzolotuhin@gmail.com)
 */
@WebService(endpointInterface = "ru.nsu.fit.ws.server_info.IServerInfo")
@HandlerChain(file= "handler-chain.xml")
public class ServerInfoImpl implements IServerInfo {
    //@Override
    public ServerInfoOutputParameter getServerInfo(ServerInfoInputParameter input) {
        ServerInfoOutputParameter output = new ServerInfoOutputParameter();
        output.setVersion("1.0");
        output.setDate(new Date().toString());
        output.setInfo("Ask Joe server");
        return output;
    }
}
